﻿namespace BlueLight.Server.Models;

/// <summary>
/// Demo
/// </summary>
[SugarTable(nameof(AppDemo), "Demo")]
public class AppDemo : EntityBase
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required, MaxLength(50)]
    [SugarColumn(ColumnDescription = "名称")]
    public string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [Required, MaxLength(50)]
    [SugarColumn(ColumnDescription = "编码")]
    public string Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnDescription = "排序", IsNullable = true, DefaultValue = "10")]
    public int Sort { get; set; }


    /// <summary>
    /// 默认项目
    /// </summary>
    [SugarColumn(ColumnDescription = "是否默认项目", IsNullable = true)]
    public YesOrNot? IsDefault { get; set; }
    /// <summary>
    /// 状态-正常_0、停用_1 
    /// </summary>
    [SugarColumn(ColumnDescription = "是否禁用", IsNullable = true)]
    public YesOrNot? IsDisable { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(100)]
    [SugarColumn(ColumnDescription = "备注", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Remark { get; set; }

}